export interface RadarData {
  total: number
  rows: RadarDataRow[]
}

export interface RadarDataRow {
  room_id: number
  building_name: string
  room_name?: string
  camera_name: string
  status: number
  id: number
  ip: string
  building_id: number
  floor_name: string
}

export interface SearchRadarListParams {
  key?: string
  status?: number
  pageNum?: number
  pageSize?: number
}

export enum RadarStatus {
  abnormal = 0,
  normal = 1,
  unbound = 2,
}

export enum RadarTextColor {
  abnormal = 'red',
  normal = 'green',
  unbound = 'black',
}
